package servlet;

import java.io.File;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.TimerTask;

import logger.GRIALogger;
import dBConnection.GRIAdBWriter;
import dBConnection.dBAgreement;
import dBConnection.dBInstitution;

public class TimedGarbageTask extends TimerTask {
	private String kmlName;

	public TimedGarbageTask(String kmlName) {
		super();
		this.kmlName = kmlName;
	}

	@Override
	public void run() {
		GRIALogger.log("deleted "+this.kmlName+".kml, by TimedTask");
		new File(
				"C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/GRIA/kml/"
						+ this.kmlName + ".kml").delete();
	}
}
